def twoSum(nums, target):
    """

    :type nums: List[int]
    :type target: int
    :rtype: List[int]
    """
    for i in range(0, len(nums)):
         for j in range(len(nums) - 1, i, -1):
            if nums[i] + nums[j] == target:
                return [i, j];
            else:
                continue;
